require("@nomicfoundation/hardhat-toolbox");
require("hardhat-abi-exporter");
// require("dotenv");
const dotenv = require("dotenv");
dotenv.config("./env");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
  solidity: "0.8.20",
  abiExporter: {
    path: "./abi",
    clear: true,
    flat: true,
  },
  networks: {
    hardhat: {},
    testnet: {
      url: process.env.RPC_URI_TEST || "http://127.0.0.1:8545",
      accounts: [
        process.env.PRIVATE_KEY_TEST ||
          "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",
        process.env.PRIVATE_KEY_TEST1 ||
          "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d",
      ],
      gasPrice: 20000000000,
    },
    sepolia: {
      url: process.env.RPC_URI_SEPOLIA || "https://sepolia.infura.io/v3/",
      accounts: [
        process.env.PRIVATE_KEY_SEPOLIA,
        process.env.PRIVATE_KEY_SEPOLIA1,
      ],
    },
  },
  abiExporter: {
    path: "./abi",
    clear: true,
    flat: true,
  },
};
